import type { RouteRecordRaw } from 'vue-router'
const operation: RouteRecordRaw[] = [
  {
    path: '/operation',
    name: 'Operation',
    redirect: '/user',
    meta: {
      title: useI18nContent('menus.operation')
    },
    children: [
      {
        path: '/user',
        name: 'User',
        component: () => import('@/views/modules/operation/user'),
        meta: {
          title: useI18nContent('menus.user'),
          parentName: 'Operation'
        }
      },
      {
        path: '/user/editor/:id?',
        name: 'UserEditorExample',
        component: () =>
          import('@/views/modules/operation/user/EditorUser.vue'),
        meta: {
          currentActiveMenu: 'User',
          parentName: 'Operation'
        }
      },
      {
        path: '/user/:id/detail',
        name: 'UserDetailExample',
        component: () =>
          import('@/views/modules/operation/user/UserDetail.vue'),
        meta: {
          currentActiveMenu: 'User',
          parentName: 'Operation',
          title: useI18nContent('menus.user_detail'),
          separator: '/'
        }
      },
      {
        path: '/admin',
        name: 'Admin',
        component: () => import('@/views/modules/operation/admin'),
        meta: {
          title: useI18nContent('menus.admin'),
          parentName: 'Operation'
        }
      },
      {
        path: '/admin/editor/:id?',
        name: 'AdminEditorExample',
        component: () =>
          import('@/views/modules/operation/admin/EditorAdmin.vue'),
        meta: {
          currentActiveMenu: 'Admin',
          parentName: 'Operation'
        }
      },
      {
        path: '/admin/:id/detail',
        name: 'AdminDetailExample',
        component: () =>
          import('@/views/modules/operation/admin/AdminDetail.vue'),
        meta: {
          currentActiveMenu: 'Admin',
          parentName: 'Operation',
          title: useI18nContent('menus.admin_detail'),
          separator: '/'
        }
      }
    ]
  }
]

export default operation
